package com.mobile.model;

/**
 * GridField entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class GridField implements java.io.Serializable {

	// Fields

	private String uniqueCode;
	private GridTable gridTable;
	private boolean allowBlank;
	private String emptyText;
	private String fieldLabel;
	private String anchor;
	private String name;
	private String type;
	private Long minValue;
	private Long maxValue;
	private String allowDecimals;

	private int version;
	
	// Constructors

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	/** default constructor */
	public GridField() {
	}

	/** minimal constructor */
	public GridField(GridTable gridTable) {
		this.gridTable = gridTable;
	}

	/** full constructor */

	// Property accessors

	public String getUniqueCode() {
		return this.uniqueCode;
	}

	public void setUniqueCode(String uniqueCode) {
		this.uniqueCode = uniqueCode;
	}

	public GridTable getGridTable() {
		return this.gridTable;
	}

	public void setGridTable(GridTable gridTable) {
		this.gridTable = gridTable;
	}

	public boolean isAllowBlank() {
		return allowBlank;
	}

	public void setAllowBlank(boolean allowBlank) {
		this.allowBlank = allowBlank;
	}

	public GridField(String name, String type) {
		super();
		this.name = name;
		this.type = type;
	}

	public GridField(boolean allowBlank, String fieldLabel, String anchor,
			String name, String type) {
		super();
		this.allowBlank = allowBlank;
		this.fieldLabel = fieldLabel;
		this.anchor = anchor;
		this.name = name;
		this.type = type;
	}

	public String getEmptyText() {
		return this.emptyText;
	}

	public void setEmptyText(String emptyText) {
		this.emptyText = emptyText;
	}

	public String getFieldLabel() {
		return this.fieldLabel;
	}

	public void setFieldLabel(String fieldLabel) {
		this.fieldLabel = fieldLabel;
	}

	public String getAnchor() {
		return this.anchor;
	}

	public void setAnchor(String anchor) {
		this.anchor = anchor;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Long getMinValue() {
		return this.minValue;
	}

	public void setMinValue(Long minValue) {
		this.minValue = minValue;
	}

	public Long getMaxValue() {
		return this.maxValue;
	}

	public void setMaxValue(Long maxValue) {
		this.maxValue = maxValue;
	}

	public String getAllowDecimals() {
		return this.allowDecimals;
	}

	public void setAllowDecimals(String allowDecimals) {
		this.allowDecimals = allowDecimals;
	}

}